package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetMax {
    public static void main(String[] args) {
        int[] ar = {8, 5, 3, 12, 14, 22, 556, 159, 6, 9};
        int max=ar[0];
        for (int i = 1; i <ar.length ; i++) {
            if(max<ar[i]){
                max=ar[i];
            }
        }
        System.out.println("最大的是："+max);
    }
}
